export default {
  state: {
    userInfoBox: {
      show: false,
      user: null
    },
    fullImage: {
      show: false,
      url: null
    },
    userSetting: {
      show: false
    }
  },
  mutations: {
    showUserInfoBox(state, user) {
      state.userInfoBox.show = true;
      state.userInfoBox.user = user;
    },
    closeUserInfoBox(state) {
      state.userInfoBox.show = false;
      state.userInfoBox.user = null;
    },
    showUserSetting(state, show) {
      state.userSetting.show = show;
    }
  }
} 